package newcoder.huawei.lx_HJ4_字符串分隔;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author Mr.wang
 * @date 2021/11/12
 */
public class Main1 {
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while ((str = bufferedReader.readLine()) != null) {
            int start = 0;
            int len = str.length();
            String first = "";
            if (len < 8) {
                first = str;
            }
            while (len >= 8) {
                System.out.println(str.substring(start, start + 8));
                start += 8;
                len -= 8;
                if (len < 8 && len > 0) {
                    first = str.substring(start, start + len);
                }
            }
            if (len > 0) {
                char[] chars = new char[8];
                for (int i = 0; i < 8; i++) {
                    char[] charArray = first.toCharArray();
                    if (i < charArray.length) {
                        chars[i] = charArray[i];
                    } else {
                        chars[i] = '0';
                    }
                }
                System.out.println(String.valueOf(chars));
            }
        }
    }
}
